@import "variables";       // 站点变量
*,
*:before,
*:after {
  box-sizing: border-box;
}
html,body,#app{
  height: 100%;
}
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.15;
  color: #303133;
  background-color: #fff;
}
a {
  color: mix(#fff, $--color-primary, 20%);
  text-decoration: none;
  &:focus,
  &:hover {
    color: $--color-primary;
    text-decoration: underline;
  }
}
img {
  vertical-align: middle;
}

/*滚动条*/
::-webkit-scrollbar {
  box-sizing: border-box;
  background-color: #fff;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  background-color: #fff;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff;
  background-color: #d8e2ef;
}

/* Utils
------------------------------ */
.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}
.clearfix:after {
  clear: both;
}
.flex{
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Animation
------------------------------ */
.fade-enter-active,
.fade-leave-active {
  transition: opacity .5s;
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}


/* Reset element-ui
------------------------------ */
// .site-wrapper {
//   .el-pagination {
//     margin-top: 15px;
//     text-align: right;
//   }
// }


/* Layout
------------------------------ */
.site-wrapper {
  position: relative;
  min-width: 1180px;
}


/* Sidebar fold
------------------------------ */
.site-sidebar--fold {

  // .site-navbar__header,
  // .site-navbar__brand,
  .site-sidebar,
  .site-sidebar__inner,
  .el-menu.site-sidebar__menu {
    width: 64px;
  }
  // .site-navbar__body,
  .site-content__wrapper {
    margin-left: 64px;
  }
  // .site-navbar__brand {
  //   &-lg {
  //     display: none;
  //   }
  //   &-mini {
  //     display: inline-block;
  //   }
  // }
  .site-sidebar,
  .site-sidebar__inner {
    overflow: initial;
  }
  .site-sidebar__menu-icon {
    margin-right: 0;
    font-size: 20px;
  }
  .site-content--tabs > .el-tabs > .el-tabs__header {
    left: 64px;
  }
}
// animation
// .site-navbar__header,
// .site-navbar__brand,
// .site-navbar__body,
.site-sidebar,
.site-sidebar__inner,
.site-sidebar__menu.el-menu,
.site-sidebar__menu-icon,
.site-content__wrapper,
.site-content--tabs > .el-tabs .el-tabs__header {
  transition: inline-block .3s, left .3s, width .3s, margin-left .3s, font-size .3s;
}


/* Navbar
------------------------------ */
.site-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  height: 70px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  background-color: $navbar--background-color-light;
  display: flex;
  color:$navbar--text-color-ligt;
  .el-dropdown{
    color:$navbar--text-color-ligt;
  }
  &--dark{
    color:$navbar--text-color-dark;
    background-image: linear-gradient(#152b40, #074b7d );
    .site-navbar__brand,.site-navbar__body{
      color: white;
    }
    .el-dropdown{
      color:$navbar--text-color-dark;
    }
 
  }



  &__menu-popper{
    background: #283c50;
    border: 1px solid transparent;
    box-shadow: 0px 0px 8px 2px rgba(0, 22, 42, 0.5);


    &[x-placement^=bottom]  {
      .popper__arrow,
      .popper__arrow::after{
        border-bottom-color:#283c50;
      }
    }

  }



  // &__header {
  //   //position: relative;
  //   float: left;
  //  // width: 230px;
  //   min-width: 230px;
  //   height: 50px;
  //   overflow: hidden;
  // }
  &__brand {
    display: table-cell;
    vertical-align: middle;
    //width: 230px;
    height: inherit;
    margin: 0;
    line-height: 70px;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    &-lg {
      margin: 0 5px;
    }

  }

  &__body {
    width: 100%;
    padding-right: 15px;
    height: inherit;
    display: flex;
    justify-content: space-between;
    &>div{
      height: inherit;
    }
  }

  .left{
    .topmenu{
      height: 100%;
      // .icon-svg{
      //   font-size: 1.4em;
      // }
      li{
        list-style-type: none;
        float: left;
        height: 100%;
        box-sizing: border-box;
        // line-height: 70px;
        padding: 0 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        .icon-svg{
          font-size:2.4em;
        }

        .inner-text{
          font-size: 16px;padding: 4px;padding-bottom: 0;
        }
      }
      .active,li:hover{
        border: 1px solid #01B9FE;
        box-shadow: inset 0px 0px 10px 2px #0A73BF;
      }
    }
  }
  .right{
    display: flex;
    justify-content: center;
    align-items: center;

    &>div{
      padding-right:20px;
    }

    .dropdown-item{
      display: flex;
      justify-content: center;
      align-items: center;
      .icon-svg{
        font-size: 1.3em;
        margin-right: 3px;
      }
      .avatar{
        width: 36px;
        height: 36px;
        margin-right: 5px;
        border-radius: 100%;
        vertical-align: middle;
      }
    }
  }



}


/* Sidebar
------------------------------ */
.site-sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  z-index: 1020;
  width: 230px;
  overflow: hidden;


  
  &__control{
    height: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;

    .icon-svg {
      width: 1.5em;
      height: 1.5em;
      color: white;
    }  

    .left-line,.right-line{
     height: 1px;
     flex: 1;
     background: white;
    //  width: 50%;
    }
  }

  &--dark,
  &--dark-popper {
    background-color: $sidebar--background-color-dark;
    .site-sidebar__menu.el-menu,
    > .el-menu--popup {
      background-color: $sidebar--background-color-dark;
      .el-menu-item,
      .el-submenu > .el-submenu__title {
        color: $sidebar--color-text-dark;
        &:focus,
        &:hover {
          color: mix(#fff, $sidebar--color-text-dark, 50%);
          background-color: mix(#fff, $sidebar--background-color-dark, 2.5%);
        }
      }
      .el-menu,
      .el-submenu.is-opened {
        background-color: mix(#000, $sidebar--background-color-dark, 15%);
      }
      .el-menu-item.is-active,
      .el-submenu.is-active > .el-submenu__title {
        color: mix(#fff, $sidebar--color-text-dark, 80%);
      }
    }
  }
  &__inner {
    position: relative;
    z-index: 1;
    width: 250px;
    height: 100%;
    padding-bottom: 15px;
    overflow-y: scroll;
  }
  &__menu.el-menu {
    width: 230px;
    border-right: 0;
  }
  &__menu-icon {
    width: 24px;
    margin-right: 5px;
    text-align: center;
    font-size: 16px;
    color: inherit !important;
  }
}

/* Panel
------------------------------ */
.site-panel {
  cursor: pointer;
  font-size: 15px;
  color:#fff;
  position: fixed;
  top: 75px;
  left: 310px;
  min-width: 600px;
  color: #5f6477;
  border-radius: 3px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
  padding: 5px 10px;
  background-color:rgb(57,75,94);
  color: white;
  z-index: 9999;
  &__li {
    list-style-type: none;
    padding: 5px 0;
  }
  &__box{
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;   
    padding:5px;
    cursor: pointer;
    .box{
      display: flex;
      padding: 0 10px;


    }
    .title{
      padding: 5px;
      display: flex;
      align-items: center;
      
      .icon-svg{
        font-size: 1.4em;
      }
      span{ 
        padding-left: 3px;
      }
    }
    
    .text{
      padding: 5px;
      padding-right: 10px;
    }
    .text:hover{
      color:#a6bbd2;
    }

  }

  &--dark{
    color: $--color-text-dark;
    box-shadow: inset 0px 0px 50px 5px #0a73bf;
    background-color: rgba(9,69,114,.9);
    //$--background-color-dark;
    .site-panel__box{
      border: 1px solid #01B9FE;
      box-shadow: inset 0px 0px 10px 2px #0a73bf;
    }

    .text:hover{
      color: $--color-primary;
    }
  }
}



/* Content
------------------------------ */
.site-content__wrapper{
  position: relative;
  padding-top: 70px;
 // margin-left: 230px;
  min-height: 100%;
  background: $content--background-color;
  padding-top: 70px;
  margin-left: 230px;


  &--dark{
   background: $content--background-color-dark !important;
  }
}


.site-content {
  position: relative;
  padding: 15px;



  &__card{
    .el-card__body{
      padding: 10px;
    }
  }


  &--tabs {
    padding: 55px 0 0;
  }
  > .el-tabs {
    > .el-tabs__header {
      position: fixed;
      top: 70px;
      left: 230px;
      right: 0;
      z-index: 930;
      padding: 0 55px 0 15px;
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .12), 0 0 6px 0 rgba(0, 0, 0, .04);
      background-color: #fff;
      > .el-tabs__nav-wrap {
        margin-bottom: 0;
        &:after {
          display: none;
        }
      }
    }
    > .el-tabs__content {
      padding: 0 10px 10px;
      > .site-tabs__tools {
        position: fixed;
        top: 70px;
        right: 0;
        z-index: 931;
        height: 40px;
        padding: 0 12px;
        font-size: 16px;
        line-height: 40px;
        background-color: $content--background-color;
        cursor: pointer;
        .el-icon--right {
          margin-left: 0;
        }
      }
    }
  }
}
.el-table__expand-icon {
  display: inline-block;
  width: 14px;
  vertical-align: middle;
  margin-right: 5px;
}

// .el-table td{
//   padding: 3px 0;
// }


.el-table .cell {
  .el-table__expand-icon{
    display: inline-block;
    width: 14px;
    vertical-align: unset;
    margin-right: 5px;
  }

  .el-button--text {
    padding: 3px 0px;
  }
}
/* search-panel
------------------------------ */
.search-panel{
  overflow: hidden;
  &>.el-form{
    display: inline;
    &>.el-form-item {
      margin-bottom: 15px;
    }
  }
  &--left {
    float: left;
  }
  &--right {
    float: right;
  }
}